package com.kang.c0c.symbol;


/**
 * 类ConstantSymbol是用来表示常量标识符的Symbol的子类
 * @field
 * value		：此符号表项的值，为常量存储具体值，为变量优化时进行常量传播
 *
 *
 * @author kang
 *
 * Feb 14, 2009
 */
public class ConstantSymbol extends Symbol{
	private int value;

	public ConstantSymbol(int pos, String name){
		super(pos, name, Kinds.CONST);
	}
	
	public ConstantSymbol(int pos, String name, int value){
		super(pos, name, Kinds.CONST);
		this.value = value;
	}
	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

}
